package com.pro.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@Data
public class JsDept {

  private Integer id;
  private String deptName;
  private String deptDescirbe;
  private Integer parentId;
  private String createId;
  @DateTimeFormat(pattern = "yyyy-MM-dd")
  @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss", timezone = "GTM+8")
  private Date createDate;
  private String updateId;
  @DateTimeFormat(pattern = "yyyy-MM-dd")
  @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss", timezone = "GTM+8")
  private Date updateDate;
  private String status;

  private String trueName;
  private List<JsDept> children = new ArrayList<>();
}
